package com.mdd.admin.validate.team;

import com.mdd.common.validator.annotation.IDMust;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 社团参数
 * @author LikeAdmin
 */
@Data
@ApiModel("社团更新参数")
public class TeamUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键")
    private Integer id;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "名称")
    private String name;

    @NotNull(message = "ownerId参数缺失")
    @ApiModelProperty(value = "所属者id")
    private Integer ownerId;

    @NotNull(message = "orgName参数缺失")
    @ApiModelProperty(value = "所属组织")
    private String orgName;

    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "状态：0待审核，1：正常，2：拒绝")
    private Integer status;

    @NotNull(message = "logo参数缺失")
    @ApiModelProperty(value = "标志")
    private String logo;

    @NotNull(message = "cover参数缺失")
    @ApiModelProperty(value = "封面图")
    private String cover;

    @NotNull(message = "attachment参数缺失")
    @ApiModelProperty(value = "附件")
    private String attachment;

    @NotNull(message = "createId参数缺失")
    @ApiModelProperty(value = "创建id")
    private Integer createId;

    @NotNull(message = "updateId参数缺失")
    @ApiModelProperty(value = "更新id")
    private Integer updateId;

}
